<?php
class Prod_adjuntoMoto extends Modelo_base {

	var $table = 'prod_ajuntomoto';

    var $has_one = array('prod_moto');

    // Validaciones de campos
    var $validation = array(
        'nombre' => array(
            'label' => 'Nombre',
            'rules' => array('required', 'trim', 'alpha_dash_dot', 'max_length' => 80)
            ),
        'descripcion' => array(
            'label' => 'Descripción',
            'rules' => array('trim', 'max_length' => 120)
            ),
        'path' => array(
            'label' => 'Path',
            'rules' => array('trim', 'max_length' => 200)
            ),
        'prod_moto' => array(
            'label' => 'Moto',
            'rules' => array('required')
            )
    );

    // Optionally, don't include a constructor if you don't need one.
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }
}

/* End of file prod_adjunto.php */
/* Location: ./application/models/prod_adjunto.php */